<style type="text/css">
.req {
	color:#c73e3e;
}
.def {
	color:#5eb95e;
}
</style>
<div class="pd-20">
        <!-- 注意是$options的第一个元素 -->
		<if condition="$pluss[0] eq null">
    	<a class="btn btn-success" href='{:U("Admin/Order/addPlusFood")}'>添加另购</a>
        <else />
        <div class="mt-20">
            <table class="table table-border table-bordered table-bg table-sort table-striped">
                <thead>
                    <tr class="text-c">
                        <th width="400">菜品</th>
                        <th width="50">操作</th>
                    </tr>
                </thead>
                <!--{$vo.postcode}-->
                <tbody>
                	<!--bbbb-->
                    <volist name="pluss" id="vo" key="k">
                        <tr class="text-c">
                            <td>
	                        <volist name="vo" id="item" key="k1">
								<span>{$item.fname}</span>*<span style="color:red;">{$item.stock}</span>
	                        	<if condition="$k1 lt count($vo)">|&nbsp;</if>
	                        </volist>    
                            </td>
                            <td>
                            <a class="btn btn-success" href='{:U("Admin/Order/showPlusFood")}'>查看另购</a>&nbsp;
                            <a class="btn btn-success" href='{:U("Admin/Order/addPlusFood")}'>修改另购</a>&nbsp;

                            </td>
                        </tr>
                    </volist>
                </tbody>
            </table>
        </div>
    </if>
</div>
<script type="text/javascript" src="__PUBLIC__/lib/layer/layer.js"></script>
<script>
var err = '{$err}';
function showFood(title, url, id, w, h) {
    layer_show(title, url, w, h);
}
//用户-编辑
function manage_edit(title, url, id, w, h, pc) {
	var height = 400 + (h-3)*31;
	if(pc == null) {
		height -= 31;
	}
    layer_show(title, url, w, height);
}

function change(obj) {
	window.location.href = "{:U('Admin/Order/showCollocation')}"+'/state/'+$(obj).val();
}

$(document).ready(function(){
	if(err != '') {
		layer.msg('请先准备新的一期,再配置套餐!', {
	        time: 5000,
	        btn: ['知道了'],
        });
	}
	var state = 1;
	$("option").each(function(){
		var opt_val = $(this).val(); 
		if(opt_val == state) {
			$(this).attr("selected",'');
		}
	});
});
</script>
